package com.study.springcloud.mapper;

import com.study.springcloud.domain.UserDomain;
import org.springframework.data.repository.PagingAndSortingRepository;
import org.springframework.stereotype.Repository;

/**
 * @Author chaos-supreme(混沌至尊):raoluping
 * @Date 2017/10/27 13:32
 * @ProjectName springcloudfather
 * @Description
 */
@Repository
public interface UserRepository extends PagingAndSortingRepository<UserDomain, Long> {
  // 根据用户名和密码查找用户
  public UserDomain findByPhoneAndPassword(String phone, String password);

}
